﻿
function var_dump(e) {
    jQuery.each(e, function (key, value) {
        console.log( key, "=", value);
    });
}
function popitup(url) {
    newwindow = window.open(url, 'name', 'height=200,width=150');
}
function addCommas(nStr) {
    nStr += '';
    x = nStr.split('.');
    x1 = x[0];
    x2 = x.length > 1 ? '.' + x[1] : '';
    var rgx = /(\d+)(\d{3})/;
    while (rgx.test(x1)) {
        x1 = x1.replace(rgx, '$1' + ',' + '$2');
    }
    return x1 + x2;
}

function sendMail() {
    //alert($('#sendMail').val());
    var strEmail = $('#sendMail').val();
    strEmail = strEmail.replace(".", "-");
    $.get("/Home/SaveEmail/" + strEmail, function (data) {
        alert(data);
    });
}